#{extends 'main.html' /}
#{set title:'Search Requests' /}

<div id="main" style="padding-top:0px">
  #{if requests}
  <table>
    <tr>
      <th>Title</th>
      <th>Requester</th>
      <th>Valid Until</th>
    </tr>
    #{list items:requests, as:'request'}
    <tr>
      <td>${request.title}</td>
      <td>${request.userEmail}</td>
      <td>${request.endDate}</td>
    </tr>
    #{/list}
  </table>
  #{/if}
  #{else}
  There are no requests available.
  #{/else}
</div>
